package dao;
import tool.RowMapper;
import tool.BaseDao;
import java.util.List;
import java.sql.SQLException;
import java.sql.ResultSet;
import entity.PricingtbEntity;
import dao.mapper.PricingtbDAOI;

/**
*@author JiangFan
*/
public class PricingtbDAO extends BaseDao implements PricingtbDAOI {

}
class PricingtbRowMapper implements RowMapper<PricingtbEntity>{
	@Override
	public PricingtbEntity rowmap(ResultSet set) throws  SQLException{
		return new PricingtbEntity(
			set.getString("pricing_id"),
			set.getString("goods_id"),
			set.getString("pricing_reasons"),
			set.getDouble("old_price"),
			set.getDouble("new_price"),
			set.getDate("pricing_time")
		);
	}
}
